@layout("../../common/main.html"){
<form class="layui-form layui-form-pane ok-form">
    <input type="hidden" id="id" name="id" value="${sysTenants.id!}"/>
    <div class="layui-form-item">
        <label class="layui-form-label">租户名称</label>
        <div class="layui-input-block">
            <input type="text" name="tenantName" id="tenantName" placeholder="请输入租户名称" autocomplete="off" class="layui-input"
                   lay-verify="required" value="${sysTenants.tenantName!}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">租户状态</label>
        <div class="layui-input-block">
            <select id="status" name="status" lay-verify="required">
                @if(isNotEmpty(sysTenants.status)){
                    <option value="0"
                            @if(sysTenants.status == '0'){
                                selected
                            @}
                    >正常</option>
                    <option value="1"
                            @if(sysTenants.status == '1'){
                                selected
                            @}
                    >禁止</option>
                @}else{
                    <option value="0">正常</option>
                    <option value="1">禁止</option>
                @}

            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" class="layui-btn" lay-submit lay-filter="add">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
@}
<script src="${ctxPath}/static/modules/tenant/tenant_info.js"></script>